package com.shopping.param;

import java.util.HashMap;
import java.util.List;

import com.shopping.commons.util.JsonUtil;
import com.shopping.model.Order;

public class OrderParam extends Order{

	//因为   address  已经继承了  CommonModel    里面有   分页的参数
	
	/**
	 * 地址id
	 */
	private Integer addrid;
	
	/**
	 * 商品详情Str
	 */
	private String commodityDetalsStr;
	
	/**
	 * 商品详情
	 */
	private List<HashMap> commodityDetals;

	public Integer getAddrid() {
		return addrid;
	}

	public void setAddrid(Integer addrid) {
		this.addrid = addrid;
	}

	public String getCommodityDetalsStr() {
		return commodityDetalsStr;
	}

	public void setCommodityDetalsStr(String commodityDetalsStr) {
		try {
			commodityDetals=JsonUtil.jsonToList(commodityDetalsStr, HashMap.class);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		this.commodityDetalsStr = commodityDetalsStr;
	}

	public List<HashMap> getCommodityDetals() {
		return commodityDetals;
	}

	public void setCommodityDetals(List<HashMap> commodityDetals) {
		this.commodityDetals = commodityDetals;
	}
}
